package com.friendtrip.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户评价表
 * </p>
 *
 * @author william.lee
 * @since 2017-04-04
 */
@TableName("customer_evaluate")
public class CustomerEvaluate extends Model<CustomerEvaluate> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 订单id
     */
	@TableField("order_id")
	private Long orderId;
    /**
     * 消费者id
     */
	@TableField("customer_id")
	private Long customerId;
    /**
     * 商家对应id
     */
	@TableField("provider_id")
	private Long providerId;
    /**
     * 分数
     */
	private Integer score;
    /**
     * 评价
     */
	private String comment;
    /**
     * 创建日期
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新日期
     */
	@TableField("update_time")
	private Date updateTime;

    public Long getId() {
        return id;
    }

    public CustomerEvaluate setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getOrderId() {
        return orderId;
    }

    public CustomerEvaluate setOrderId(Long orderId) {
        this.orderId = orderId;
        return this;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public CustomerEvaluate setCustomerId(Long customerId) {
        this.customerId = customerId;
        return this;
    }

    public Long getProviderId() {
        return providerId;
    }

    public CustomerEvaluate setProviderId(Long providerId) {
        this.providerId = providerId;
        return this;
    }

    public Integer getScore() {
        return score;
    }

    public CustomerEvaluate setScore(Integer score) {
        this.score = score;
        return this;
    }

    public String getComment() {
        return comment;
    }

    public CustomerEvaluate setComment(String comment) {
        this.comment = comment;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public CustomerEvaluate setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public CustomerEvaluate setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    @Override
	protected Serializable pkVal() {
		return this.id;
	}

}
